<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../common/web_top.jsp" %>
<title>用户列表</title>
<div ng-include="loanBefore" class="includeStyle "><!--定位div容器-->


    <div class="bgSortScroll">
        <div class="public-bgContent">
            <div class="public-bgDate">
		<span class="tdSelect auto-input">
			<span data-max="5" data-id="id" data-name="d_name" data-url="manager/departmentCascade.do"
                  title-name="部门">
				 <input name="departmentId1" data-type="param" type="hidden" value="-1"/>
				 <input name="departmentId1" data-type="param" type="hidden" value="-1"/>
				 <input name="departmentId1" data-type="param" type="hidden" value="-1"/>
				 <input name="departmentId1" data-type="param" type="hidden" value="-1"/>
				 <input name="departmentId1" data-type="param" type="hidden" value="-1"/>
			</span>
			<div class="se-re">
				<%--<select class="trSignSel select-hover" ng-options="c.id as c.roleName for c in adminzhiWei.content"--%>
                        <%--ng-model="param.roleId">--%>
					<%--<option value="">选择职位</option>--%>
				<%--</select>--%>
				<%--<span class="se-po se-po-span"></span>--%>
                    <select id="search_content_top" class=""></select>
                                      <script type="text/x-handlebars-template" id="search_content_top_tpl">
										<select class="select-hover">
											<option value="">部门</option>
                                         {{#each .}}
											<option value="{{id}}">{{d_name}}</option>
                                         {{/each}}
										</select>
                                         </script>


                 <select id="search_content_top2" class="add_man"></select>
                                         <script type="text/x-handlebars-template" id="search_content_top_tpl2">
										 <select class="select-hover">
											<option value="">选择职位</option>
                                           {{#each .}}
											<option value="{{id}}">{{d_name}}</option>
                                            {{/each}}
										</select>
                                        </script>

                 <select id="search_content_top3" class="add_man"></select>
                                         <script type="text/x-handlebars-template" id="search_content_top_tpl3">

										 <select class="select-hover">
											<option value="">选择职位</option>

                                           {{#each .}}
											<option value="{{id}}">{{d_name}}</option>

                                            {{/each}}


										</select>

                                        </script>


                                           <select id="search_content_top4" class="add_man"></select>
                                         <script type="text/x-handlebars-template" id="search_content_top_tpl4">
										 <select class="select-hover">
											<option value="">选择职位</option>
                                           {{#each .}}
											<option value="{{id}}">{{d_name}}</option>
                                            {{/each}}
										</select>
                                        </script>
                                           <select id="search_content_top5" class="add_man"></select>
                                         <script type="text/x-handlebars-template" id="search_content_top_tpl5">

										 <select class="select-hover">
											<option value="">选择职位</option>
                                           {{#each .}}
											<option value="{{id}}">{{roleName}}</option>
                                            {{/each}}
										</select>

                                        </script>
			</div>


		</span>
                <div class="se-re">
                    <select id="search_state">
                        <option value="">状态</option>
                        <option value="1">正常</option>
                        <option value="0">禁用</option>
                    </select>
                    <span class="se-po"></span>
                </div>
                <span>
			<input type="text" autocomplete="off" placeholder="请输入关键字" id="search_keyword"/>
		</span>
                <button id="search_btn">
                    <i class="iconfont icon-sousuo"></i>
                </button>
            </div>
            <div class="public-bghint">
                <span ng-click="show('caozuo')" style="cursor: pointer;">提示操作</span>
                <i class="iconfont icon-icon-copy-copy"></i>
                <span class="calNum">筛选<span class="result">0</span>条结果</span>
            </div>
            <ul class="public-ulList set-listH" ng-show="setShow.caozuo">
                <li>显示拥有该栏目管理权限的数据；</li>
                <li>系统所有管理员列表，可以进行管理员密码重置，编辑、删除等操作；</li>
                <li>系统默认admin超级管理员，不可以删除、禁用。</li>
            </ul>
            <div style="height: 20px;"></div>


            <div class="table-scroll">
                <!--tabel 列表-->
                <table class="table public-table PoInput">
                    <thead>
                    <tr>
                        <td>选择</td>
                        <%--<td>ID</td>--%>
                        <td>用户名</td>
                        <td>真实姓名</td>
                        <td>手机号码</td>
                        <td>所属职位</td>
                        <td>所属部门</td>
                        <td>登录次数</td>
                        <td>最后登录时间</td>
                        <td>状态</td>
                        <td>操作</td>
                    </tr>
                    </thead>
                    <tbody id="manager_list"></tbody>
                    <script type="text/x-handlebars-template" id="manager_tpl">
                        {{#if .}}
                        {{#each .}}
                        <tr class="table-tr-hover">
                            <%--checkbox要判断id>0--%>
                            <td><input type="checkbox" name="ch_id" value="{{id}}"/></td>
                            <%--<td>{{id}}</td>--%>
                            <td>{{username}}</td>
                            <td>{{real_name}}</td>
                            <td>{{telephone}}</td>
                            <td>{{role_name}}</td>
                            <td><%--handlerbas判断--%>
                                {{#if d3_name }}{{d3_name}}{{/if}}{{#if d3_name }} >{{/if}}
                                {{#if d2_name }}{{d2_name}}{{/if}}{{#if d2_name }} >{{/if}}
                                {{#if d1_name}} {{d1_name}}{{/if}}
                            </td>
                            <td>{{degree}}</td>
                            <td>{{last_login_time}}</td>
                            <td>{{#if_eq locked 1}}
                                正常
                                {{else}}
                                锁定
                                {{/if_eq}}
                            </td>
                            <%-- handlerbas判断--%>
                            <td>
                                <div class="se-re sel-blue">
                                    <select class="tabHint operations" data-systemcode="{{systemcode}}">
                                        <option value="-1">选择操作</option>
                                        <option value="edit" data-id="{{id}}">编辑用户</option>
                                        <option value="reset" data-id="{{id}}">重置密码</option>
                                        <option value="delete" data-name="删除用户" data-status="删除" data-id="{{id}}">删除用户
                                        </option>
                                        <option value="close" data-name="禁用用户" data-status="禁用" data-locked="0"
                                                data-id="{{id}}">禁用用户
                                        </option>
                                        <option value="open" data-name="开启用户" data-status="开启" data-locked="1"
                                                data-id="{{id}}">
                                            开启用户
                                        </option>
                                    </select>
                                    <span class="se-po-blue"></span>
                                </div>
                                <button id="{{id}}" ng-if="HbHr.hr272" class="operations_record tabHint btnQuery{{id}}">
                                    操作记录
                                </button>
                            </td>

                        </tr>

                        {{/each}}
                        {{else}}

                        <tr>
                            <td style="position: relative;
    left: 50%;
transform: translateX(-50%);
border: none;
">暂无数据
                            </td>
                        </tr>
                        {{/if}}
                    </script>
                    <tfoot class="public-botPage">
                    <tr>
                        <td>
                            <!-- 全选反选  -->
                            <input type="checkbox" name="checkboxAll" id="checkboxAll"/>
                        </td>
                        <td colspan="12">
                            <div class="public-botPage-left">
							<span>
								<span>全选</span>
							</span>
                                <div class="se-re">
                                    <select id="bulk_operation" class="tabHint table1" ng-model="selectType.default"
                                            ng-change="selectQuery('table1','ch_id')">
                                        <option value="-1" data-oper="">批量操作</option>
                                        <option ng-if="HbHr.hr221" value="1" path="set" params="remarks"
                                                param="url:deleteAdmins.do,name:删除用户,status:删除">批量删除
                                        </option>
                                        <option ng-if="HbHr.hr222" value="2" path="set" params="remarks"
                                                param="url:updateAdminsEnable.do,name:禁用用户,status:禁用,locked:0">批量禁用
                                        </option>
                                        <option ng-if="HbHr.hr223" value="3" path="set" params="remarks"
                                                param="url:updateAdminsEnable.do,name:开启用户,status:开启,locked:1">批量开启
                                        </option>
                                    </select>
                                    <span class="se-po"></span>
                                </div>
                                <button class="tabHint" id="addUser" param="">
                                    添加用户
                                </button>
                            </div>
                            <div class="page-container product-page-container"
                                 style="float: right; padding: 15px 0;"></div>
                        </td>
                    </tr>
                    </tfoot>

                </table>
            </div>


        </div>
    </div>
</div>
<!--提示操作-->

<div class="winBox editwinBox" style="display: none;">
    <div class="winBox1">
        <div class="winBox3">
            <div class="dealrecord">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">编辑用户</span>
                    <i class="iconfont icon-wrong headerIcon" id="show"></i>
                </div>
                <!-- 内容 -->
                <div class="contentBox" style="padding-bottom: 50px; max-width: 500px">
                    <!-- 中间tab -->
                    <table class="maTab">
                        <tbody>
                        <tr>
                            <td><span style="color: #D5332C;font-weight: bold;">*</span>选择所属职务</td>
                            <td class="public-bgDate select-tb">
								<span class="tdSelect">
									 <span data-max="5" id="DEPARTMENTID" data-id="id" data-name="d_name"
                                           data-url="manager/departmentCascade.do"
                                           title-name="部门">
										 <input name="departmentId" id="parentId0" data-type="param" type="hidden"/>
										 <input name="departmentId" id="parentId1" data-type="param" type="hidden"/>
										 <input name="departmentId" id="parentId2" data-type="param" type="hidden"/>
										 <input name="departmentId" id="parentId3" data-type="param" type="hidden"/>
										 <input name="departmentId" id="parentId4" data-type="param" type="hidden"/>
									</span>
									<div class="se-re">
                                     <select id="edit_content_top"></select>

                                      <script type="text/x-handlebars-template" id="edit_content_top_tpl">

											<option value="">选择公司</option>

                                         {{#each .}}
											<option value="{{id}}">{{d_name}}</option>

                                         {{/each}}

                                         </script>
                                        <div class="se-re" id="edit_content_top2">

										 <select class="edit_content_top2 select-hover">
                                            <option value="">选择分公司</option>
                                         </select>

                                         <script type="text/x-handlebars-template" id="edit_content_top_tpl2">
                                             <option value="">选择分公司</option>
                                             {{#each .}}
											<option value="{{id}}">{{d_name}}</option>

                                            {{/each}}

                                        </script>

                                        </div>





                                          <div class="se-re" id="edit_content_top3">

                                                  <select class="edit_content_top3 select-hover">
                                                      <option value="">选择部门</option>
                                                  </select>
                                              <script type="text/x-handlebars-template" id="edit_content_top_tpl3">

                                         <option value="">选择职位</option>

                                           {{#each .}}
											<option value="{{id}}">{{d_name}}</option>

                                            {{/each}}



                                        </script>
                                          </div>



                                           <div class="se-re" id="edit_content_top4">

										 <select class="edit_content_top4 select-hover">
                                            <option value="">选择区域</option>

                                         </select>
                                            <script type="text/x-handlebars-template" id="edit_content_top_tpl4">
											<option value="">选择区域</option>

                                           {{#each .}}
											<option value="{{id}}">{{d_name}}</option>

                                            {{/each}}
                                        </script>


                                           </div>


                                           <div class="se-re" id="edit_content_top5">

                                           <select class="select-hover edit_content_top5">
                                            <option value="">选择职位</option>
                                           </select>

                                         <script type="text/x-handlebars-template" id="edit_content_top_tpl5">

											<option value="">选择职位</option>

                                           {{#each .}}
											<option value="{{id}}">{{roleName}}</option>

                                            {{/each}}

                                        </script>



                                           </div>
										<%--<span class="se-po se-po-span"></span>--%>
									</div>
								</span>
                            </td>
                        </tr>


                        <tbody id="edit_content"></tbody>

                        <script type="text/x-handlebars-template" id="edit_content_tpl">

                            <tr>


                                <td><span style="color: #D5332C;font-weight: bold;">*</span>用户名</td>
                                <td class="unload">

                                    <input type="text" autocomplete="off" id="empno" value="{{empno}}"
                                           disabled="disabled">


                                    <span style="color: #999999;">最多不超过10个字</span>
                                </td>

                            </tr>
                            <tr>
                                <td><span style="color: #D5332C;font-weight: bold;">*</span>真实姓名</td>
                                <td class="unload">
                                    <input type="text" autocomplete="off" ng-focus="remHight()" id="realName"
                                           value="{{realName}}"
                                           ng-class="{'error':redErr.realname}" ng-model="param.realname">
                                </td>
                            </tr>
                            <tr>
                                <td><span style="color: #D5332C;font-weight: bold;">*</span>员工号</td>
                                <td class="unload">
                                    <input type="text" autocomplete="off" ng-focus="remHight()" id="username"
                                           value="{{username}}"
                                           ng-class="{'error':redErr.empno}" ng-model="param.empno">
                                </td>
                            </tr>
                            <tr>
                                <td><span style="color: #D5332C;font-weight: bold;">*</span>手机号码</td>
                                <td class="unload">
                                    <input type="text" autocomplete="off" id="telephone" value="{{telephone}}">
                                </td>
                            </tr>
                            <tr>
                                <td><span style="color: #D5332C;font-weight: bold;">*</span>邮箱地址</td>
                                <td class="unload">
                                    <input type="text" autocomplete="off" id="mail" value="{{mail}}"
                                           ng-class="{'error':redErr.mail}" ng-model="param.mail">
                                </td>
                            </tr>
                        </script>
                        </tbody>
                    </table>
                    <!-- 底部 -->
                    <div class="deleFooter footerBox">
                        <div class="deleBtn">
                            <button class="updataBut" style="background: #E55A5B;" id="submit">确定提交</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<%--新增加--%>
<div class="winBox winBoxAdd" style="display: none">
    <div class="winBox1">
        <div class="winBox3">
            <div class="dealrecord">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">新建用户</span>
                    <i class="iconfont icon-wrong headerIcon" id=""></i>
                </div>
                <!-- 内容 -->
                <div class="contentBox" style="padding-bottom: 50px; max-width: 500px">
                    <!-- 中间tab -->
                    <table class="maTab">
                        <tbody>


                        <tr>
                            <td><span style="color: #D5332C;font-weight: bold;">*</span>选择所属职务</td>
                            <td class="public-bgDate select-tb" style="padding-left: 10px !important;">
								<span class="tdSelect">
									 <span data-max="5" data-id="id" data-name="d_name"
                                           data-url="manager/departmentCascade.do"
                                           title-name="部门">
										 <input name="departmentId" id="" data-type="param" type="hidden"/>
										 <input name="departmentId" id="" data-type="param" type="hidden"/>
										 <input name="departmentId" id="" data-type="param" type="hidden"/>
										 <input name="departmentId" id="" data-type="param" type="hidden"/>
										 <input name="departmentId" id="" data-type="param" type="hidden"/>
									</span>
									<div class="se-re">
                                     <select id="add_content_top" class="add_man"></select>

                                      <script type="text/x-handlebars-template" id="add_content_top_tpl">

											<option value="">选择公司</option>

                                            {{#each .}}
                                            <option value="{{id}}">{{d_name}}</option>
                                            {{/each}}



                                     </script>

                                        <div id="add_content_top2" class="se-re-jq">

										 <select class="select-hover add_content_top2">
                                            <option value="">选择分公司</option>
										</select>
                                            <script type="text/x-handlebars-template" id="add_content_top_tpl2">
											<option value="">选择分公司</option>

                                            {{#each .}}
                                            <option value="{{id}}">{{d_name}}</option>

                                            {{/each}}
                                            </script>
                                        </div>





                                        <div id="add_content_top3" class="se-re-jq">

										 <select class="select-hover add_content_top3">
											<option value="">选择部门</option>
										</select>
                                            <script type="text/x-handlebars-template" id="add_content_top_tpl3">
											<option value="">选择部门</option>

                                            {{#each .}}
                                            <option value="{{id}}">{{d_name}}</option>

                                            {{/each}}
                                        </script>

                                            </div>


                                           <div id="add_content_top4" class="se-re-jq">

										 <select class="select-hover add_content_top4">
											<option value="">选择区域</option>

										</select>
                                               <script type="text/x-handlebars-template" id="add_content_top_tpl4">

											<option value="">选择区域</option>
                                            {{#each .}}
                                            <option value="{{id}}">{{d_name}}</option>
                                            {{/each}}
                                            </script>
                                             </div>

                                            <div id="add_content_top5" class="se-re-jq">

										 <select class="select-hover add_content_top5">
											<option value="">选择职位</option>
										</select>
                                        <script type="text/x-handlebars-template" id="add_content_top_tpl5">
											<option value="">选择职位</option>
                                            {{#each .}}
                                            <option value="{{id}}">{{roleName}}</option>
                                            {{/each}}
                                        </script>
                                        </div>

										<%--<span class="se-po se-po-span"></span>--%>
									</div>
								</span>
                            </td>
                        </tr>


                        <tr>


                            <td><span style="color: #D5332C;font-weight: bold;">*</span>用户名</td>
                            <td class="unload">

                                <input type="text" autocomplete="off" id="addEmpno" value="ks366"
                                       disabled="disabled">


                                <span style="color: #999999;">最多不超过10个字</span>
                            </td>

                        </tr>
                        <tr>
                            <td><span style="color: #D5332C;font-weight: bold;">*</span>真实姓名</td>
                            <td class="unload">
                                <input type="text" autocomplete="off" ng-focus="remHight()" id="addRealName"
                                       ng-class="{'error':redErr.realname}" ng-model="param.realname">
                            </td>
                        </tr>
                        <tr>
                            <td><span style="color: #D5332C;font-weight: bold;">*</span>员工号</td>
                            <td class="unload">
                                <input type="text" autocomplete="off" ng-focus="remHight()" id="addUserName"
                                       value=""
                                       ng-class="{'error':redErr.empno}" ng-model="param.empno">
                            </td>
                        </tr>
                        <tr>
                            <td><span style="color: #D5332C;font-weight: bold;">*</span>手机号码</td>
                            <td class="unload">
                                <input type="text" autocomplete="off" id="addTelephone" value="">
                            </td>
                        </tr>
                        <tr>
                            <td><span style="color: #D5332C;font-weight: bold;">*</span>邮箱地址</td>
                            <td class="unload">
                                <input type="text" autocomplete="off" id="addMail" value=""
                                       ng-class="{'error':redErr.mail}" ng-model="param.mail">
                            </td>
                        </tr>

                        </tbody>
                    </table>
                    <!-- 底部 -->
                    <div class="deleFooter footerBox">
                        <div class="deleBtn">
                            <button class="addBtn" style="background: #E55A5B;" id="">确定提交</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<%--删除用户--%>
<div class="winBox winBoxDelect" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box">
        <div class="winBox2 ">
            <remarksadmin><!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan  winBoxDelect_title">删除用户</span>
                    <i class="iconfont icon-wrong headerIcon"></i>
                </div>
                <!-- 内容 -->
                <div class="deleBox">
                    <!-- 中间列表 -->
                    <div class="deleteTit">
                        <i class="iconfont icon-tips2" style="margin-top: 25px"></i>
                        <span class=" winBoxDelect_content" style="margin-top: 0">您确定要删除所选的用户吗？</span>
                    </div>
                    <div class="beizhu"><span>*</span>输入原因：</div>
                    <textarea class="delect_reason"></textarea>
                    <!-- 底部 -->
                    <div class="deleFooter">
                        <div class="deleBtn">
                            <button class="delectBtn">确定提交</button>
                            <%--<button>取消</button>--%>
                        </div>
                    </div>
                </div>

            </remarksadmin>
        </div>
    </div>
</div>

<%--重置密码--%>

<div class="winBox winBoxReset" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box">
        <%--!-- 说明：
        贷前弹窗操作记录模板 directive调用在loanBefore.js 481行 --&gt;--%>
        <div class="winBox2 ">
            <updatepassword><!-- 说明：审核结果 -->
                <div class="addadmin">

                    <!-- 头部 -->
                    <div class="headerBox">
                        <span class="headerSpan">重置密码</span>
                        <i class="iconfont icon-wrong headerIcon""></i>
                    </div>
                    <div class="resultBox" style="margin-top:20px">
                        <div class="centerBox" style="max-height: 631px;">
                            <div class="resultPadd">
                                <table class="resultTab">
                                    <tbody>
                                    <!-- tr******************* -->

                                    <tr>
                                        <td><span style="color: #D5332C;font-weight: bold;">*</span>输入新密码</td>
                                        <td class="unload">
                                            <input ng-focus="remHight()" class="resetPasswork" type="password"
                                                   ng-model="param.password"
                                                   class="ng-pristine ng-untouched ng-valid ng-empty">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td><span style="color: #D5332C;font-weight: bold;">*</span>再次确认密码</td>
                                        <td class="unload">
                                            <input ng-focus="remHight()" class="resetAgainPasswork"
                                                   type="password"
                                                   ng-model="param.againPassword"
                                                   class="ng-pristine ng-untouched ng-valid ng-empty">
                                        </td>
                                    </tr>

                                    </tbody>
                                </table>
                                <!-- tab列表结束 -->
                                <!-- 底部 -->
                                <div class="deleFooter">

                                    <div class="deleBtn">
                                        <button style="background: #E55A5B;" class="resetPsw_Btn">确定提交</button>
                                    </div>

                                </div>
                            </div>
                        </div>

                    </div>


                </div>
            </updatepassword>
        </div>
    </div>
</div>

<script type="text/javascript" src="static/js/page/set/lims_manager/lims_manager.js?_v=190102162154"></script>
<%--<script type="text/javascript" src="static/js/page/set/lims_manager/lims_manager2.js"></script>--%>
<script type="text/javascript" src="static/js/jquery-plugin/jpager.js?_v=190102162154"></script>
<%@ include file="../../common/web_bottom.jsp" %>

